import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class WriteFile {
	public static void main(String[] args) throws IOException {
		File f = new File("C:\\asd\\log2.txt");
		FileWriter fw = new FileWriter(f);
		fw.write("Hello");
		fw.close();
	}
}
